
            $(document).ready(function() {  
         //#yanzhenm��֤����֤
        $("#yanzhenma").focus(function() {  
            $("#yanzhenma").css("background-color", "#FFFFCC");  
        });
         $("#yanzhenma").blur(function() { 
             $("#yanzhenma").css("background-color", "white");  
             var code=$("#yanzhenma").val();//��ȡ������֤��
            var url=$('form').attr('action');//��ȡ��action��ֵ
            $.ajax({
            type:"post",
            url:url,
            data:{"code":code},
            error:function(request){
            alert("ajax����");
            },
            success:function(data){
            if(data){
                $("#yanzhenmaRight").show();  
                $("#yanzhenmaError").hide();
               
            }else{
              $("#yanzhenmaRight").hide();  
                $("#yanzhenmaError").show();  
            }
            }
            });
           
        }); 
        //username��֤  
        $("#username").focus(function() {  
           // $("#username").css("background-color", "#FFFFCC");  
        });  
        $("#username").blur(function() {  
            var regtitle = /^[a-zA-Z][a-zA-Z0-9_]*$/;  
            var uname = $("#username").val();  
            $("#username").css("background-color", "white");  
            if (uname.length <= 0 || !regtitle.test(uname)) {  
                $("#usernameRight").hide();  
                $("#usernameError").show();  
            } else {  
                $("#usernameRight").show();  
                $("#usernameError").hide();  
            }  
        });  
        //password��֤  
        $("#userpassword").focus(function() {  
            //$("#userpassword").css("background-color", "#FFFFCC");  
        });  
        $("#userpassword").blur(function(){  
            var upassword = $("#userpassword").val();  
            $("#userpassword").css("background-color", "white");  
            if (upassword.length > 5 && upassword.length < 17) {  
                $("#userpasswordRight").show();  
                $("#userpasswordError").hide();  
            } else {  
                $("#userpasswordRight").hide();  
                $("#userpasswordError").show();  
            }  
        });  
        //password1��֤  
        $("#userpassword1").focus(function() {  
           // $("#userpassword1").css("background-color", "#FFFFCC");  
        });  
        $("#userpassword1").blur(function(){  
            var upassword = $("#userpassword").val();  
            var upassword1 = $("#userpassword1").val();  
            $("#userpassword1").css("background-color", "white");  
            if (upassword1 != upassword) {  
                $("#userpassword1Right").hide();  
                $("#userpassword1Error").show();  
            } else {  
                $("#userpassword1Right").show();  
                $("#userpassword1Error").hide();  
            }  
        });  
        //userphone��֤  
        $("#userphone").focus(function() {  
           // $("#userphone").css("background-color", "#FFFFCC");  
        });  
        $("#userphone").blur(function() {  
            var regphone = /^(13[0-9]|15[0-9]|18[0-9]|16[0-9])\d{8}$/;  
            var uphone = $("#userphone").val();  
            $("#userphone").css("background-color", "white");  
            if (uphone.length <= 0 || !regphone.test(uphone)) {  
                $("#userphoneRight").hide();  
                $("#userphoneError").show();  
            } else {  
                $("#userphoneRight").show();  
                $("#userphoneError").hide();  
            }  
        });  
        //usereamil��֤  
        $("#useremail").focus(function() {  
           // $("#useremail").css("background-color", "#FFFFCC");  
        });  
        $("#useremail").blur(function() {  
            var regemail = /^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/;  
            var uemail = $("#useremail").val();  
            $("#useremail").css("background-color", "white");  
            if (uemail.length <= 0 || !regemail.test(uemail)) {  
                $("#useremailRight").hide();  
                $("#useremailError").show();  
            } else {  
                $("#useremailRight").show();  
                $("#useremailError").hide();  
            }  
        });  
        //userqq��֤  
        $("#userqq").focus(function() {  
            //$("#userqq").css("background-color", "#FFFFCC");  
        });  
        $("#userqq").blur(function() {  
            var regQQ = /^\d{5,13}$/;  
            var userqq = $("#userqq").val();  
            $("#userqq").css("background-color", "white");  
            if (userqq.length <= 0 || !regQQ.test(userqq)) {  
                $("#userqqRight").hide();  
                $("#userqqError").show();  
            } else {  
                $("#userqqRight").show();  
                $("#userqqError").hide();  
            }  
        });  
    });  
    $("#signup_forms_submit").click(function(){  

        if($(".isRight").css("display")!='none'){  
            if(confirm("确认注册嘛")){  
                return true;  
            }else{  
                return false;  
            }  
        }else{  
            return false;  
        }  
    }  );
